package org.jon.lagoon.dao;

import org.jon.lagoon.model.Photo;
import org.jon.lagoon.model.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Jon on 2017/9/26.
 */
@Repository
public interface PhotoDao extends CrudRepository<User, Long> {

    Photo save(Photo photo);

    List<Photo> findByUser(User user);

    Photo findByPhotoId(Long photoId);

}